<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>mysql-json-ajax</title>
</head>
<body>

<div id="app">
         <div v-for="emp in list">
             {{emp.emp_name}}
         </div>
</div>

</body>
<script src="../../lib/vue.global.js"></script>
<script src="../../lib/axios.js"></script>
<script>
    var app = Vue.createApp({
        data() {  // 0.data:function()
            return {
                list: []
            }
        }, mounted() {
            var _this = this;
            axios({
                url: '../../data/staff.json',
                type: 'get',
                dataType: 'json'
            }).then(function (res) {
                _this.list = res.data;
            })
        }
    }).mount('#app');

</script>
</html>